<?php 
class Country_Form_Admin_Country_Create extends Engine_Form{
    
    public function  init(){
        
        $this//->setAttrib('id', 'form-manageads')
			//->setAttrib('name', 'mlm_form_banner_manageads')
			->setAttrib('enctype', 'multipart/form-data')
			->setAction(Zend_Controller_Front::getInstance()->getRouter()
			->assemble(array ()));
            
        /// add Title
       $this->addElement('Text','country_title',array(
			'label' => 'Title',
			//'description' =>'Title of Field',
			'required' =>true,
            'allowEmpty'=>false
			
			
		));
        /// add Title
        
        $this->addElement('TinyMce', 'description_country', array(
            'label' => 'Description',
            'required' => true,
            'allowEmpty' => false,
            'attribs' => array('rows' => 180, 'cols' => 350, 'style' => 'width:740px; max-width:740px;height:858px;'),
            'editorOptions' => array(
                    'plugins' => 'preview,table,layer,style,xhtmlxtras,media,advhr,paste,fullscreen,searchreplace',
                    'theme_advanced_buttons1' => "preview,code,|,pasteword,|,undo,redo,|,image,media,|,removeformat,cleanup,fullscreen",
                    'theme_advanced_buttons2' => "bold,italic,underline,strikethrough,|,bullist,numlist,|,outdent,indent,blockquote,|,justifyleft,justifycenter,justifyright,justifyfull,",
                    //'theme_advanced_buttons3' => "formatselect,fontselect,fontsizeselect,|,forecolor,backcolor,"
                    ),
            'filters' => array(
                    new Engine_Filter_Censor(),
                    new Engine_Filter_Html(array('AllowedTags' => "strong, b, em, i, u, strike, sub, sup, p, div, pre, address, h1, h2, h3, h4, h5, h6, span, ol, li, ul, a, img, embed, br, hr"))),
        ));
        
       
         
         
        $this->addElement('File', 'new_flag', array(
              'label' => 'Choose New Flag',
              'required' => true,
              'allowEmpty' => false,
              'destination' => APPLICATION_PATH.'/public/temporary/',
              'multiFile' => 1,
              'validators' => array(
                array('Count', false, 1),
                // array('Size', false, 612000),
                array('Extension', false, 'jpg,jpeg,png,gif'),
              )
        ));
        
        
        $this->addElement('File', 'new_small_map', array(
              'label' => 'Choose New Small Map',
              'required' => true,
              'allowEmpty' => false,
              'destination' => APPLICATION_PATH.'/public/temporary/',
              'multiFile' => 1,
              'validators' => array(
                array('Count', false, 1),
                // array('Size', false, 612000),
                array('Extension', false, 'jpg,jpeg,png,gif'),
              )
        ));   
        
        $this->addElement('File', 'new_big_map', array(
              'label' => 'Choose New Big Map',
              'required' => true,
              'allowEmpty' => false,
              'destination' => APPLICATION_PATH.'/public/temporary/',
              'multiFile' => 1,
              'validators' => array(
                array('Count', false, 1),
                // array('Size', false, 612000),
                array('Extension', false, 'jpg,jpeg,png,gif'),
              )
        )); 
		
      /// add President name
       $this->addElement('Text','president_name',array(
			'label' => 'President Name',
			'required' => false,
            'allowEmpty' => true	
		));
		
		$this->addElement('File', 'president_image_id', array(
              'label' => 'Choose President Image',
              'required' => false,
              'allowEmpty' => false,
              'destination' => APPLICATION_PATH.'/public/temporary/',
              'multiFile' => 1,
              'validators' => array(
                array('Count', false, 1),
                // array('Size', false, 612000),
                array('Extension', false, 'jpg,jpeg,png,gif'),
              )
        )); 
		
		/// add Title
       /*$this->addElement('Text','national_anthem_title',array(
			'label' => 'National Anthem Title',
			'required' => false,
            'allowEmpty' => true	
		));
		*/
		$this->addElement('File', 'national_anthem_id', array(
              'label' => 'Choose National Anthem',
              'required' => false,
              'allowEmpty' => true,
              'destination' => APPLICATION_PATH.'/public/temporary/',
              'multiFile' => 1,
              'validators' => array(
                array('Count', false, 1),
                // array('Size', false, 612000),
                array('Extension', false, 'mp3,m4a,aac,mp4'),
              )
        )); 
		
        $this->addElement('Button', 'submit', array (
			'type' => 'submit', 
			'label' => 'Save', 
			'decorators' => array (
					'ViewHelper'
			)
        ));
		
		$this->addElement('Cancel', 'cancel', array (
				'label' => 'cancel', 
				'link' => true, 
				'prependText' => Zend_Registry::get('Zend_Translate')->_(' or '), 
				'href' => '', 
				'onclick' => 'parent.Smoothbox.close();', 
				'decorators' => array (
						'ViewHelper'
				)
		));
		$this->addDisplayGroup(array (
				'submit', 
				'cancel'
		), 'buttons');
		$button_group = $this->getDisplayGroup('buttons');    
    }
}
?>